package com.sann.config;

import com.sann.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:/pro.properties") // 加载配置文件资源
public class MainConfigOfPropertyValue {

    @Bean
    public Person person(){
        return new Person();
    }
}
